﻿package  com.pool
{
	import flash.geom.Point;
	/**
	 * ...
	 * @author Scott
	 */
	public class Config
	{
		public static var radius:Number = 10;		//球半径
		public static var deskW:Number = 613;		//球桌内沿长度
		public static var deskH:Number = 305;		//球桌内沿宽度
		public static var deskCenter:Point = new Point(deskW / 2, deskH / 2);		//球桌中心
		
		//public static var d_friction:Number = 10;		//桌面摩擦系数
		//public static var d_BallDec:Number = 10;		//与桌面碰撞衰减
		public static var bd_CirXDec:Number = .99;		//球与桌面对碰x轴转动衰减
		public static var bd_CirYDec:Number = .99;		//球与桌面对碰y轴转动衰减
		public static var bd_CirZDec:Number = .99;		//球与桌面对碰z轴转动衰减
		public static var bd_MoveXDec:Number = .99;		//球与桌面对碰x轴平动衰减
		public static var bd_MoveYDec:Number = .99;		//球与桌面对碰y轴平动衰减
		
		public static var bb_Dec:Number = .99;		//球与球对碰衰减
		//public static var b_MoveDec:Number = 10;		//球的移动速度衰减
		public static var bb_CirXDec:Number = .99;		//球与球对碰x轴转动衰减
		public static var bb_CirYDec:Number = .99;		//球与球对碰y轴转动衰减
		public static var bb_CirZDec:Number = .99;		//球与球对碰z轴转动衰减
		//public static var b_MoveXDec:Number = 10;		//球与球对碰x轴平动衰减
		//public static var b_MoveYDec:Number = 10;		//球与球对碰y轴平动衰减
		
		//public static var b_CirXDec:Number = 10;		//球的x轴转动衰减
		//public static var b_CirXTrans:Number = 10;		//球的x轴转动转化
		//public static var b_CirYDec:Number = 10;		//球的y轴转动衰减
		//public static var b_CirYTrans:Number = 10;		//球的y轴转动转化
		//public static var b_CirZDec:Number = 10;		//球的z轴转动衰减
		//public static var b_CirZTrans:Number = 10;		//球的z轴转动转化
		//
		//public static var b_MoveXDec:Number = 10;		//球的x轴平动衰减
		//public static var b_MoveXTrans:Number = 10;		//球的x轴平动转化
		//public static var b_MoveYDec:Number = 10;		//球的y轴平动衰减
		//public static var b_MoveYTrans:Number = 10;		//球的y轴平动转化
		//
		//public static var f_ToCirH:Number = 10;		//力转化x轴转动速度系数
		//public static var f_ToCirV:Number = 10;		//力转化y轴转动速度系数
		//public static var f_ToCirV:Number = 10;		//力转化z轴转动速度系数
		//public static var f_ToCirV:Number = 10;		//力转化x轴平动速度系数
		//public static var f_ToCirV:Number = 10;		//力转化y轴平动速度系数
		
		public static var status:int = 0;
		//Status：0=初始，1=等待控制，2=可以控制，3=击球后等待，4=停球后等待，5=等待放球，6=可以放球，7=放球后等待，20=练习
		
		public static var mouseStatus:int=0
		//鼠标状态：0=初始，1=鼠标经过，2=按下，3=放开鼠标，4=鼠标离开
		
		public static var ignore:Number = .1;
		
		public static var powerSpeed:Number = .2;
		
		public static var power:Number = 0;
		
		public function Config() 
		{
			
		}
	}

}